package com.beehoo.dcportal.admin.dao;

import java.util.List;
import java.util.Map;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.CommentBean;

public interface CommentDao {

	/**
	 * 查询评论列表
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public List<CommentBean> queryComments(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 查询评论列表总数
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public int queryCommentCount(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 查询一条评论
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public CommentBean queryComment(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 审核评论
	 * 
	 * @param commentBean
	 * @return
	 * @throws BaseException
	 */
	public int auditComment(CommentBean commentBean) throws BaseException;

	/**
	 * 删除评论
	 * 
	 * @param commentId
	 * @return
	 * @throws BaseException
	 */
	public int delComment(String commentId) throws BaseException;
}
